
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table border="1" cellpadding="5" cellspacing="0">
<tr bgcolor="lightgray">
	<th>로그인정보</th>
</tr>
<tr bgcolor="white">
	<td align="left" >
<c:if test="${sessionScope.memberDTO!=null }">
${sessionScope.memberDTO.id } 님환영합니다.<p>
이름 : ${sessionScope.memberDTO.name }<br>
주민번호 : ${sessionScope.memberDTO.registerNumber1 }-${sessionScope.memberDTO.registerNumber2 }<br>
마일리지 : ${sessionScope.memberDTO.mileage }<br>
신 용 도 : ${sessionScope.memberDTO.credit_score}<br> 
회원등급 : ${sessionScope.memberDTO.credit }<br>
</c:if>
<c:if test="${sessionScope.companyDTO!=null }">
${sessionScope.companyDTO.id } 님환영합니다.<p>
이름 : ${sessionScope.companyDTO.name }<br>
사업번호 : ${sessionScope.companyDTO.businessNo}<br>
마일리지 : ${sessionScope.companyDTO.mileage }<br>
신 용 도 : ${sessionScope.companyDTO.credit_score}<br>
회원등급 : ${sessionScope.companyDTO.credit }<br> 
</c:if>
<c:if test="${sessionScope.adminDTO!=null }">
${sessionScope.adminDTO.id } 님환영합니다.<p>
이름 : ${sessionScope.adminDTO.name }<br>
사업번호 : ${sessionScope.adminDTO.businessNo}<br>

</c:if>
</td>
</tr>
<tr>
		<td bgcolor="#afeeee">
<c:if test="${not empty sessionScope.adminDTO}">
<a href='/${initParam.context_root }/adminManager.do'>관리자모드(회원,기업관리)</a><br>
</c:if>
<input type="button" value="로그아웃" onclick="location.href='/${initParam.context_root }/memberLogout.do'">
<c:if test="${sessionScope.companyDTO!=null }">
<input type="button" value="상품등록" onclick="location.href='/${initParam.context_root }/register_form.do'">

</c:if>
<input type="button" value="나의정보" onclick="location.href='/${initParam.context_root }/memberInfo.do'">
<!--<input  type="button" value="회원정보조회" onClick="location.href='/${initParam.context_root }/getMemberInfo'">   --> 
</td>
</tr>
</table>
</body>
</html>
